package edu.rjh.foundation.euqals;

import edu.rjh.foundation.entity.User;

public class Test {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        int c = 1;
        System.out.println(a == b);
        System.out.println(a == c);

        User user1 = new User();
        User user2 = new User();
        System.out.println(user1 == user2);//false
        System.out.println(user1.equals(user2));//true

    }
}

